//
//  MovieListView.swift
//  SwiftUi
//
//  Created by xm on 05/09/2025.
//

import SwiftUI

struct MovieDetailView: View {
    
    let viewMode: MovieViewModel
    
    init(viewMode: MovieViewModel) {
        self.viewMode = viewMode
    }
    
    var body: some View {
        Text("Movie:\(viewMode.movie.name)")
    }
}

#Preview {
    let coordinator = MoviesCoordinator()
    let movie = UseCaseData.movies[0]
    MovieDetailView(viewMode: MovieViewModel(movie: movie, coordinator: coordinator))
}
